package com.it.schoolbookshop_back.entities.dto;

import lombok.Data;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 评分请求DTO
 */
@Data
public class RatingRequestDTO {
    /**
     * 交易ID
     */
    @NotNull(message = "交易ID不能为空")
    private Integer transaction_id;
    
    /**
     * 评分(1-5)
     */
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    private Integer score;
    
    /**
     * 评价内容
     */
    @NotNull(message = "评价内容不能为空")
    @Size(min = 1, max = 500, message = "评价内容长度必须在1-500个字符之间")
    private String comment;
} 